/**
 *  风险管理模块 api
 *  @module api/riskcontrol
 */
import axios from '@/utils/axios.js'
const API_HOST = ''
/**
 * 风险点列表
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const listRiskPointManagement = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/risk/locationData/list'
})
/**
 * 风险管理
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageControlInfo = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseRisk/controlInfo/page'
})
/**
 * 新增风险管理
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const addControlInfo = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/baseRisk/controlInfo/add'
})
/**
 * 管控任务-结束任务
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const saveAndOut = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseRisk/controlInfo/saveAndOut'
})
/**
 * 管控任务-领取任务
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getRecieve = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseRisk/controlInfo/recieve'
})
/**
 * 管控任务-拒绝任务
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getReject = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/baseRisk/controlInfo/reject'
})
/**
 * 矿风险清单
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageRiskData = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/base/riskData/page'
})
/**
 * 矿风险清单信息详情
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const infoRiskData = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/base/riskData/info'
})
/**
 * 风险区域分页接口
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageRiskLocation = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/riskLocation/area/page'
})
/**
 * 获取首页矿图地理信息
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getMineHomeMap = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/min/picture/getMineHome'
})
/**
 * list查询接口
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pictureList = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/min/picture/list'
})
/**
 * 获取岗位对应的隐患风险级别
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getPostRLHLRel = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/identify/activityTask/getPostRLHLRel'
})
/**
 * 获取矿风险详情管控措施分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getManageControlPage = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/base/riskData/manageControlPage'
})